<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
	<title></title>
	<style type="text/css">
	#content{
		width: 300px;
		height: 100px;
		border: 1px solid #666;
		margin-bottom: 20px;
	}

	</style>
</head>
<body>
<div id="content"></div>
<textarea rows="5" cols="40" id="text"></textarea>
<script type="text/javascript">
var oText = document.getElementById('text');

var oContent= document.getElementById('content');

// 键盘按键被按下的行为
oText.onkeydown = function (argument) {
	if (argument.keyCode==13 && argument.ctrlKey) {
		oContent.innerHTML += this.value;
		this.value = "";
		argument.preventDefault();
	}
}

// 键盘抬起事件
oText.onkeyup = function (argument) {
	if (argument.keyCode==13 && argument.ctrlKey) {
		oContent.innerHTML += this.value;
		this.value = "";
		argument.preventDefault();
	}
}


</script>
</body>
</html>